<template>
  <div class="school-page">
    <!-- 顶部导航栏 -->
    <header class="navbar">
      <div class="logo">Career <span>Builder</span></div>
      <nav>
        <ul>
          <li>HOME</li>
          <li>ABOUT</li>
          <li>GALLERY</li>
          <li>FACULTY</li>
          <li>EVENTS</li>
          <li>CONTACT</li>
        </ul>
      </nav>
    </header>

    <!-- 头图 -->
    <section class="hero">
      <img src="https://picsum.photos/1200/350?random=1" alt="校园头图" />
      <div class="hero-text">
        <button>View Campus</button>
      </div>
    </section>

    <!-- About 区块 -->
    <section class="about">
      <h2>ABOUT</h2>
      <div class="about-content">
        <div class="about-left">
          <h3>A WORD<br/>ABOUT US</h3>
          <p>智慧校园，成就未来。我们致力于为学生提供优质的教育资源和舒适的学习环境，培养创新型人才。</p>
          <button>EXPLORE</button>
        </div>
        <div class="about-center">
          <img src="https://picsum.photos/200/120?random=2" alt="about" />
        </div>
        <div class="about-right">
          <div class="about-stat">
            <div class="stat-num">70000</div>
            <div class="stat-label">Students</div>
          </div>
          <div class="about-stat">
            <div class="stat-num">600</div>
            <div class="stat-label">Faculty</div>
          </div>
        </div>
      </div>
    </section>

    <!-- 功能区块 -->
    <section class="features">
      <div class="feature-card">
        <img src="https://picsum.photos/300/180?random=3" alt="Library" />
        <div class="feature-info">
          <h4>Library</h4>
          <p>丰富的藏书，舒适的阅读环境，助力学子成长。</p>
          <button>EXPLORE</button>
        </div>
      </div>
      <div class="feature-card">
        <img src="https://picsum.photos/300/180?random=4" alt="Computer Lab" />
        <div class="feature-info">
          <h4>Computer Lab</h4>
          <p>先进的计算机设备，助力信息化学习。</p>
          <button>EXPLORE</button>
        </div>
      </div>
      <div class="feature-card">
        <img src="https://picsum.photos/300/180?random=5" alt="Conference Hall" />
        <div class="feature-info">
          <h4>Conference Hall</h4>
          <p>宽敞明亮的会议厅，举办各类学术活动。</p>
          <button>EXPLORE</button>
        </div>
      </div>
      <div class="feature-card">
        <img src="https://picsum.photos/300/180?random=6" alt="Play Ground" />
        <div class="feature-info">
          <h4>Play Ground</h4>
          <p>多功能运动场，丰富课余生活。</p>
          <button>EXPLORE</button>
        </div>
      </div>
    </section>

    <!-- Gallery 区块 -->
    <section class="gallery">
      <h2>GALLERY</h2>
      <p>校园生活精彩瞬间，见证成长与收获。</p>
      <div class="gallery-grid">
        <img src="https://picsum.photos/200/140?random=7" alt="Lab" />
        <img src="https://picsum.photos/200/140?random=8" alt="Activity" />
        <img src="https://picsum.photos/200/140?random=9" alt="Stadium" />
        <img src="https://picsum.photos/200/140?random=10" alt="Classroom" />
        <img src="https://picsum.photos/200/140?random=11" alt="Students" />
        <img src="https://picsum.photos/200/140?random=12" alt="Playground" />
      </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer">
      <div>© 2024 智慧校园 | 学号：22265120218</div>
    </footer>
  </div>
</template>

<style scoped>
.school-page {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #222;
}
.navbar {
  background: #19d3d3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 56px;
}
.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}
.logo span {
  color: #222;
}
.navbar ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar li {
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 1px;
}
.hero {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}
.hero-text {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
}
.hero-text button {
  background: #19d3d3;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1.1em;
  border-radius: 24px;
  cursor: pointer;
  font-weight: bold;
}
.about {
  padding: 48px 0 32px 0;
  text-align: center;
}
.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 24px;
}
.about-left {
  text-align: left;
  max-width: 220px;
}
.about-left h3 {
  font-size: 1.3em;
  margin-bottom: 12px;
}
.about-left p {
  font-size: 1em;
  margin-bottom: 16px;
}
.about-left button {
  background: #19d3d3;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 16px;
  cursor: pointer;
}
.about-center img {
  border-radius: 8px;
  width: 200px;
  height: 120px;
  object-fit: cover;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-stat {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 24px;
  text-align: center;
}
.stat-num {
  font-size: 1.5em;
  font-weight: bold;
  color: #19d3d3;
}
.stat-label {
  font-size: 1em;
  color: #222;
}
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 32px 0;
}
.feature-card {
  background: #19d3d3;
  color: #fff;
  border-radius: 10px;
  width: 270px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.feature-info {
  padding: 16px;
  text-align: center;
}
.feature-info h4 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
}
.feature-info p {
  font-size: 0.98em;
  margin-bottom: 12px;
}
.feature-info button {
  background: #fff;
  color: #19d3d3;
  border: none;
  padding: 6px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
}
.gallery {
  padding: 40px 0 32px 0;
  text-align: center;
}
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}
.gallery-grid img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.footer {
  background: #19d3d3;
  color: #fff;
  text-align: center;
  padding: 18px 0;
  margin-top: 32px;
  font-size: 1em;
}
</style>